AnnieRoot.index=AnnieRoot.index||{};
index.IconItem = function () {
    var s = this;
    annie.Sprite.call(s);
    s.mouseChildren = false;
};
A2xExtend(index.IconItem, annie.Sprite);
index.IconItem.displayList = [];
index.IconItem.prototype.initData = function (id, data) {
    var s = this;
    if (data) {
        s.removeAllChildren();
        var newId=data.id;
        if (!index.IconItem.displayList[newId]) {
            var icon=new index["IconItem" + newId]();
            icon.scaleY=icon.scaleX=0.8;
            index.IconItem.displayList[newId]=icon;
        }
        var child=index.IconItem.displayList[newId];
        child.x=80;
        child.y=60;
        s.addChild(child);
        s.id=id;
    }
};
index.CheckIcon=function(){
	var s = this;
	annie.Sprite.call(s);
    /*_a2x_need_start*/s.left_btn=null;s.right_btn=null;/*_a2x_need_end*/
    annie.initRes(s,"index","CheckIcon");
    var sp = new annieUI.ScrollList(index.IconItem, 160, 120, 480, 240, false,2);
    sp.x=35;
    sp.y=2;
    sp.updateData([{id:0}, {id:1},{id:2},{id:3},{id:4},{id:5},{id:6},{id:7},{id:8},{id:9},{id:10}, {id:11},{id:12},{id:13},{id:14},{id:15},{id:16},{id:17},{id:18},{id:19},{id:20}]);
    s.addChild(sp);
    s.addEventListener(annie.MouseEvent.CLICK,function (e) {
        if(e.target.id!=undefined){
            s.parent.gotoAndPlay("back",false);
            index.MakeMc.iconId=e.target.id;
        }
    })
    s.left_btn.mouseEnable=false;
    s.right_btn.mouseEnable=false;
};
A2xExtend(index.CheckIcon,annie.Sprite);
